package com.link.serve.downlink.messaging;

import com.alibaba.fastjson2.annotation.JSONField;
import lombok.Data;

import java.io.Serializable;

/**
 * 单聊消息实体类
 */
@Data
public class ChatMessage implements Serializable {
    @JSONField(name = "sender_id")
    private Integer senderId;

    @JSONField(name = "receiver_id")
    private Integer receiverId;

    @JSONField(name = "timestamp")
    private Long timestamp;

    @JSONField(name = "message_id")
    private Long messageId;

    @JSONField(name = "message_type")
    private Integer messageType;

    @JSONField(name = "context")
    private String context;
    //会话id
    @JSONField(name = "session_id")
    private Long sessionId;
}